package work.mediway.mdm.biz.service.biz;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

import work.mediway.mdm.core.page.QueryRequest;
import work.mediway.mdm.biz.dto.biz.SsTablePermDTO;
import work.mediway.mdm.biz.entity.biz.SsUserLinkTable;
import work.mediway.mdm.biz.vo.biz.SsTablePermVO;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2021/3/25
 */
public interface SsUserLinkTableService extends IService<SsUserLinkTable> {

    /**
     * 保存或者更新表权限信息
     *
     * @param userLinkTables List<SsUserLinkTable>
     */
    void saveTablePerm(List<SsUserLinkTable> userLinkTables);

    /**
     * 查询字段权限信息
     *
     * @param tablePermDTO SsTablePermDTO
     * @param queryRequest QueryRequest
     * @return Page<SsFieldTablePermVO>
     */
    Page<SsTablePermVO> pageTablePerm(SsTablePermDTO tablePermDTO, QueryRequest queryRequest);
}
